#include "threadPool.h"

int threadArr_init(threadArr* arr, int work_num) {
    pthread_t* tid = (pthread_t*)calloc(work_num, sizeof(pthread_t));
    if(!tid){
        fprintf(stderr, "calloc tid failed in threadArr_init:threadArr.c\n");
    }
    arr->index = int_table_create();
    arr->tid = tid;
    arr->work_num = work_num;
    return 0;
}
